package com.lzh.persevere.model.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.lzh.persevere.common.BaseEntity;
import lombok.*;
import lombok.experimental.Accessors;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 文章标签表(ArticleTag)实体类
 *
 * @author luzhiheng
 * @since 2025-07-17
 */
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("article_tag")
@Builder
@Accessors(chain = true)
@Entity
@Table(name = "article_tag", indexes = {})
public class ArticleTag extends BaseEntity {

    /**
     * 文章ID
     */
    @Column(name = "article_id", columnDefinition = "bigint COMMENT '文章ID'")
    private Long articleId;

    /**
     * 标签ID
     */
    @Column(name = "tag_id", columnDefinition = "bigint COMMENT '标签ID'")
    private Long tagId;

}

